package yl.hs.bmipfull.pojo.equipment;

import lombok.Data;
import lombok.EqualsAndHashCode;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

import java.util.Date;

/*
 * EquipmentEntity
 * @category
 * @author 谢景广
 * @date 2022-11-14
 */
@EqualsAndHashCode(callSuper = true)
@DBTable(disName = "设备信息",mapCode = "equipment_info")
@Data
public class EquipmentEntity extends BaseEntity
{
    private Long id;
    @DBField(isSerialNumber = true,mapCode = "sn",snPrefix = "EQUI",disName = "设备编号")
    private String sn;
    @DBField( disName = "设备名称",mapCode = "name")
    private String name;
    @DBField( disName = "型号规格",mapCode = "module")
    private String module;
    @DBField( disName = "机台编号",mapCode = "deviceNum")
    private String deviceNum;
    @DBField( disName = "购买日期",mapCode = "buyDate")
    private Date buyDate;
    @DBField( disName = "所属部门",mapCode = "ownerDepart")
    private String ownerDepart;
    private String ownerDepartSN;
    @DBField( disName = "使用状态",mapCode = "useState")
    private int  useState;
    @DBField( disName = "设备参数",mapCode = "deviceParameter")
    private String deviceParameter;
    @DBField( disName = "供应商",mapCode = "supplier")
    private String supplier;
    @DBField( disName = "供应商联系人",mapCode = "supplyLinker")
    private String supplyLinker;
    @DBField( disName = "供应商联系方式",mapCode = "supplyLink")
    private String supplyLink;
    private String principalSN;
    @DBField( disName = "负责人",mapCode = "principalName")
    private String principalName;
    private int intervalTime;
    private int timeUnit;
    @DBField( disName = "最近保养时间",mapCode = "lastTime")
    private Date lastTime;
    @DBField( disName = "下次保养时间",mapCode = "nextTime")
    private Date nextTime;
    @DBField( disName = "备注",mapCode = "remark")
    private String remark;
    private int state;
    @DBField( disName = "分类",mapCode = "classify")
    public String classify;
}
